package com.hspedu.homework.homework10;

/**
 * @author 谷其昊
 * @version 1.0
 * @date 2022/1/24
 * @time 19:57
 */
public class Homework10 {
    public static void main(String[] args) {
        Doctor doctor = new Doctor("jack", 20, "doctor", "男", 1000);
        Doctor doctor2 = new Doctor("jack", 20, "doctor", "男", 1000);
        System.out.println(doctor.equals(doctor2));
        System.out.println(doctor == doctor2);
    }
}
